package lab02.test35;

/**
 * Created by MECHREV on 2017/11/15.
 */
public class Worker extends Employee {
    int days;
    double dailySalary;
    public Worker(String name,int days,double dailySalary) {
        super(name);
        this.dailySalary=dailySalary;
        this.days=days;
    }

    @Override
    public double computeSalary() {
        return days*dailySalary;
    }
}
